package com.ktjy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController extends BaseController{

    @RequestMapping("/hello")
    public String hello() {
        System.out.println("hello.................");
        return "hello";
    }

    @RequestMapping("/innerhello")
    public String innerhello() {
        System.out.println("innerhello.............");
        return "forward:/WEB-INF/jsp/innerhello.jsp";
    }

    @RequestMapping("/baidu")
    public String baidu() {
        System.out.println("baidu.............");
        return "redirect:http://www.baidu.com";
    }

    @RequestMapping("/outhello")
    public String outhello() {
        System.out.println("outhello.............");
        return "redirect:/baidu";
    }
}
